﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using BUS;

namespace TuyenDungViecLam.Admin
{
    public partial class CapNhatPhi : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GrvThongTinPhi.DataSource = NhaTuyenDung_BUS.LayTatCaPhi();
                GrvThongTinPhi.DataBind();
            }
        }

        //protected void GrvThongTinPhi_RowDataBound(object sender, GridViewRowEventArgs e)
        //{
        //    if (e.Row.RowType == DataControlRowType.DataRow)
        //    {
               
        //        ImageButton Delete = (ImageButton)e.Row.FindControl("Delete");
        //        string str = "if(!confirm('Bạn có muốn xóa không?')) return false;";
        //        Delete.OnClientClick = str; 
        //    }
        //}

        protected void GrvThongTinPhi_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Edit")
            {
                int maPhi = int.Parse(e.CommandArgument.ToString());

                Response.Redirect("EditPhi.aspx?Mp="+ maPhi);
            }

            if (e.CommandName == "Delete")
            {

            }
        }
    }
}
